package com.ruoyi.project.erp.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.erp.domain.TaskMember;
import com.ruoyi.project.erp.domain.Worklog;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class TaskInfoVo {

    private Long taskId;
    private String taskName;
    private String taskDesc;
    private String status;
    private String priority;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private String projectName;
    private String projectId;

    private BigDecimal leftHours;

    private List<TaskMemberVo> taskMembers; // 任务成员列表

    private List<Worklog> worklogs ; // 任务工时列表

    private boolean canFinish;
}
